<?php

use Illuminate\Database\Migrations\Migration;
use Illuminate\Database\Schema\Blueprint;
use Jialeo\LaravelSchemaExtend\Schema;

class AlterOpenShopUserIdentityCardAddExportIndex extends Migration
{
    /**
     * Run the migrations.
     *
     * @return void
     */
    public function up()
    {
        Schema::table('open_shop_user_identity_card', function (Blueprint $table) {
            $table->dropIndex("idx_orderNo");
            $table->index(["orderNo", "name"], "idx_orderNo_name");
        });
    }

    /**
     * Reverse the migrations.
     *
     * @return void
     */
    public function down()
    {
        Schema::table('open_shop_user_identity_card', function (Blueprint $table) {
            $table->index(["orderNo"], "idx_orderNo");
            $table->dropIndex("idx_orderNo_name");
        });
    }
}
